for i in range(1,10):
    pp = 1
    while pp <= i:
        if pp == i:
            print("{}*{}={}".format(pp, i, pp * i))

        else:
            print("{}*{}={}".format(pp,i,pp*i),end="  ")
        pp += 1

for i in range(1,10):
    pp = 1
    while  pp <= i:
        print("{}*{}={}".format(pp, i, pp * i))  if  pp == i else print("{}*{}={}".format(pp,i,pp*i),end="  ")
        pp+=1
    # good